home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / Apple Game Sprockets / Examples / InputSprocketPPTest / ISpEventPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-16  |  797 b   |  49 lines  |  [TEXT/CWIE]

  1. #pragma once
  2.  
  3. //====
  4. // AngleCaption.h
  5. //
  6. // Allows you to display the flow
  7. // in a caption!
  8. //=====
  9.  
  10.  
  11. #include <LPane.h>
  12. #include <LPeriodical.h>
  13. #include <LOffscreenView.h>
  14. #include "InputSprocket.h"
  15. #include "InputSprocketDriver.h"
  16.  
  17. class ISpEventPane : public LOffscreenView, LPeriodical
  18. {
  19. public:
  20.     enum {class_ID = 'ISep'};
  21.     
  22.     ISpEventPane(LStream *inStream);
  23.     ~ISpEventPane();
  24.     
  25.     static ISpEventPane *CreateISpEventPaneStream(LStream *inStream);
  26.     void SpendTime(const EventRecord &inMacEvent);
  27.     void DrawSelf();
  28.     
  29.     
  30. private:
  31.  
  32.     Boolean mDataValid;
  33.     
  34.     typedef struct
  35.     {
  36.         OSStatus theError;
  37.         AbsoluteTime when;
  38.         UInt32 data;
  39.         float percent;
  40.         ISpElementReference theElement;
  41.         UInt32 refCon;
  42.         OSType label;
  43.         OSType kind;
  44.         Str63 theString;
  45.     } PrintRecord;
  46.     
  47.     PrintRecord mPrintRecord;
  48. };
  49.